package com.currency.admin.api.feign;

import com.currency.admin.pojo.dto.UserAuthDTO;
import com.currency.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Lan
 * @date 2021/12/10
 */
@FeignClient(value = "currency-admin")
public interface UserFeignClient {

    @GetMapping("/api/v1/user/username/{username}")
    Result<UserAuthDTO> getUserByUsername(@PathVariable String username);
}
